import matplotlib.pyplot as plt

# - * - coding:utf-8 - * -
persons = [33, 65, 30, 30]
majors = ["信息管理与信息系统", "应用统计", "经济统计", "数据科学与大数据技术"]
colors = ["c", "m", "r", "k"]

plt.rcParams["font.sans-serif"] = ["Dejavu Sans"]
plt.pie(
    persons,
    labels=majors,
    colors=colors,
    autopct="%1.1f%%",
    explode=(0.1, 0, 0.1, 0),
    startangle=180,
)
plt.axis("equal")


plt.title("各专业人数分布")
plt.show()
